package com.example.demo.information.entity.info;

import com.example.demo.common.utils.Constant;
import com.example.demo.information.entity.Bjxx;
import lombok.Data;

/**
 * @author littlecar
 * @date 2020/3/23 15:18
 */
@Data
public class BjxxInfo {

    private Long id;
    private String bjbh;
    private String name;
    private String short_name;
    private String bjbn;
    private String nj;
    private Integer rs;
    private String bzr;
    private String school_name;

    public BjxxInfo(Bjxx bjxx) {
        this.id = bjxx.getId();
        this.bjbh = bjxx.getBjbh();
        this.name=bjxx.getName();
        this.short_name = bjxx.getShort_name();
        this.bjbn = bjxx.getBjbh();
        this.nj = Constant.njmMap.get(bjxx.getNjm());
        this.rs = bjxx.getRs();
        this.bzr = bjxx.getBzr();
        this.school_name=bjxx.getSchool().getName();
    }
}
